import { createRouter, createWebHistory } from 'vue-router'
import App from '../App.vue'
import Databind from '../views/Databind.vue'
import LoginApp from '../views/LoginApp.vue'
import HaloPage from '../views/halo.vue'

const routes = [
   {
    path: '/',
    redirect: '/loginApp' 
  },
  {
    path: '/LoginApp',
    name: 'LoginApp',
    component: LoginApp
  },
  {
    path: '/Databind',
    name: 'Databind',
    component: Databind
  },
  {
    path: '/halo',
    name: 'HaloPage',
    component: HaloPage
  },
  {
    path: '/demo',
    name: 'demo',
    component: App
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router